import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@/views/home/index.vue'
import XqView from '@/views/xq/index.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // 重定向
    { path: '/', redirect: '/home' },
    { path: '/home', name: 'home', component: HomeView, },
    { path: '/xq', name: 'xq', component: XqView, },
  ],
})

export default router
